package com.dr.service.impl;

import com.dr.mapper.LoginMapper;
import com.dr.pojo.User;
import com.dr.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service("LoginService")
@Transactional
public class LoginServiceImpl implements LoginService {
    @Autowired
    private LoginMapper mapper;
    @Override
    public User findUser(User user) {
        return mapper.findUser(user);
    }
}
